<!DOCTYPE html>
<html lang="en">
<head>
<base href="<?php echo base_url() ;?>"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>测试</title>
</head>
<body>

<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce">
      <tr>
        <td height="20">&nbsp;</td>
      </tr>
  <?php 
	$i = 1;
	$right = 0;
  	foreach ($answer_result as $row): 
  	if ( $row[0]->nums == 1 )	$right++; 
  ?>
      <tr>
        <td height="20">&nbsp;<?php echo "第".$i."题. "; echo ($row[0]->nums)? "正确" : "错误"; ?></td>
      </tr>
  <?php 
	$i++;
  	endforeach;
  ?>
        <tr>
        <td height="20">&nbsp;回家作业: <?php echo anchor($this->config->item('www_upload_path').$homework[0]->filename,"下载作业")?></td>
      </tr> 
      <tr>
        <td height="20">&nbsp;<input type="button" name="submit_exam" value="返回" onclick="history.back()"/></td>
      </tr>                  
      </table>
</body>
</html>